<?php
  defined('_JEXEC') or die('Restricted access');
  $user =& JFactory::getUser();
  JHTML::_('behavior.tooltip');
  $this->_toolbarDefault();
  $page = $this->page;
  $client = $this->client;
?>
<div id="janews-main">
<form action="index.php" method="post" name="adminForm">
<table class="adminlist">
	<thead>
	
	<tr>
		<th width="20">
			<?php echo JText::_( 'Num' ); ?>
		</th>
		<th width="30">
			&nbsp;
		</th>
		<th width="" class="title">
			<?php echo JText::_( 'Language' ); ?>
		</th>
		<th width="">
			<?php echo JText::_( 'Default' ); ?>
		</th>
		<th width="">
			<?php echo JText::_( 'Version' ); ?>
		</th>
		
	</tr>
	</thead>
	<tfoot>
	<tr>
		<td colspan="8">
			<?php echo $page->getListFooter(); ?>
		</td>
	</tr>
	</tfoot>
	
		<tbody>
	<?php
	$k = 0;
	for ($i=0, $n=count( $this->rows ); $i < $n; $i++) {
		$row = &$this->rows[$i];
		?>
		<tr class="<?php echo "row$k"; ?>">
			<td width="">
				<?php echo $page->getRowOffset( $i ); ?>
			</td>
			<td width="">
				<input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->language; ?>" onclick="isChecked(this.checked);" />
			</td>
			<td width="">
				<a href="index.php?option=<?php echo $option;?>&task=edit&controller=languages&lang=<?php echo $row->language;?>&client=<?php echo $client->id;?>"><?php echo $row->name;?></a>
			</td>
			<td width="" align="center">
				<?php
				if ($row->published == 1) {	 ?>
					<img src="templates/khepri/images/menu/icon-16-default.png" alt="<?php echo JText::_( 'Default' ); ?>" />
					<?php
				} else {
					?>
					&nbsp;
				<?php
				}
			?>
			</td>
			<td align="center">
				<?php echo $row->version; ?>
			</td>
			
		</tr>
	<?php
	}
	?>
	</tbody>
	
	</table>

<input type="hidden" name="option" value="com_janews" />
<input type="hidden" name="client" value="<?php echo $client->id;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="languages" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
</div>